<?php

class Application_Form_Login extends Zend_Form
{
	public function init()
	{
		$this->setName("Login");
		
		$pseudo = new Zend_Form_Element_Text("loginPseudo");
		//$pseudo->setLabel("Pseudo");
		$pseudo->setAttrib("class", "login-inp");		
		
		$password = new Zend_Form_Element_Password("loginPassword");
		//$password->setLabel("Password");
		$password->setAttrib("class", "login-inp");
		
		$loginButton = new Zend_Form_Element_Submit("loginButton");
		//$loginButton->setLabel("Login");
		$loginButton->setAttrib("class", "submit-login");
		
		$annulerButton = new Zend_Form_Element_Button("annulerLoginButton");
		$annulerButton->setLabel("Annuler")->setAttrib("onClick", "window.location='acceuil'");
		
		$sessionCheck = new Zend_Form_Element_Checkbox("sessionCheck");	
		
		$this->addElements(array($pseudo,$password,$loginButton,$annulerButton,$sessionCheck));
	}
}